#!/bin/bash

path=`cd "$( dirname ${BASH_SOURCE[0]} )" && pwd`
config=$path/config
bin=$path/bin
yunzai=`cat $config/yunzai.txt`

cd $path

echo "开始清理node依赖"

cd $yunzai
findConfig(){
	list=`ls $1`
	for i in $list
	do
		
		if [[ "$i" = "node_modules" ]];then
			rm -rf $1/$i
		elif [ -d $1/$i ];then
			findConfig $1/$i
		fi
	done
}
findConfig $path/$yunzai
cd $path










